<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>HELLO，AMAP!</title>
    <style>
        html, body, #container {
            padding: 40px;
            box-sizing: border-box;
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>
<div id="container"></div>
<script type="text/javascript">
    window._AMapSecurityConfig = {
        securityJsCode:"f0b650a9ffb39f61a501cbe9bb43b09a",
    }
</script>
<script src="https://webapi.amap.com/loader.js"></script>
<script type="text/javascript" >
    AMapLoader.load({
        key: "95cc827661fa984e8265551f2ff5f2e2",       // 申请好的Web端开发者Key，首次调用 load 时必填
        version: "2.0",                 // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
    }).then((AMap)=>{
        const map = new AMap.Map('container');
    }).catch((e)=>{
        console.error(e);  //加载错误提示
    });
</script>
</body>
</html>